{% if type == 'allSchool' %}
    <table class="table table-bordered">
        <tbody>
        <tr class="info">
            <th>教师总数</th>
            <th>云教辅使用率</th>
            <th>人数占比(广义)</th>
            <th>人数占比(狭义)</th>
        </tr>
        {% if data is defined %}
            {% for index,rateName in chineseRate %}
                <tr>
                    {% if loop.first %}
                        <td rowspan="{{ chineseRate | length }}">{{data['totalNum'] }}</td>
                    {% endif %}
                    <td>{{ rateName }}</td>
                    <td>{{ data['generalRate'][index] *100 }}%</td>
                    <td>{{ data['narrowRate'][index] *100}}%</td>
                </tr>
            {% endfor %}
        {% else %}
            <tr>
                <td colspan="4">暂无数据</td>
            </tr>
        {% endif %}
        </tbody>
    </table>
{% endif %}
{% if type == 'schools' %}
    <table class="table table-bordered">
        <tbody>
        <tr class="info">
            <th>学校名称</th>
            <th>教师总数</th>
            <th>云教辅使用率</th>
            <th>人数占比(广义)</th>
            <th>人数占比(狭义)</th>
        </tr>
        {% if data is defined %}
            {% for i,item in data %}
                {% for index,rateName in chineseRate %}
                    <tr>
                        {% if loop.first %}
                            <td rowspan="{{ chineseRate | length }}">{{item['schoolName'] }}</td>
                            <td rowspan="{{ chineseRate | length }}">{{item['totalNum'] }}</td>
                        {% endif %}
                        <td>{{ rateName }}</td>
                        <td>{{ item['generalRate'][index] *100 }}%</td>
                        <td>{{ item['narrowRate'][index] *100}}%</td>
                    </tr>
                {% endfor %}
            {% endfor %}
        {% else %}
            <tr>
                <td colspan="4">暂无数据</td>
            </tr>
        {% endif %}
        </tbody>
    </table>
{% endif %}
{% if type == 'teachers' %}
    <table class="table table-bordered">
        <tbody>
        <tr class="info">
            <th>学校名称</th>
            <th>教师名称</th>
            <th>云教辅使用率（广义的）</th>
            <th>云教辅使用率（狭义的）</th>
        </tr>
        {% if data is defined %}
            {% for i,item in data['teacherRates'] %}
                <tr>
                    {% if loop.first %}
                        <td rowspan="{{ data['teacherRates'] | length }}">{{data['schoolName'] }}</td>
                    {% endif %}
                    <td>{{ item['name'] }}</td>
                    <td>{{ item['generalRate'] *100 }}%</td>
                    <td>{{ item['narrowRate'] *100}}%</td>
                </tr>
            {% endfor %}
        {% else %}
            <tr>
                <td colspan="4">暂无数据</td>
            </tr>
        {% endif %}
        </tbody>
    </table>
{% endif %}
